package com.linjuke.mayouting.web.modules.screen.role;

import com.linjuke.mayouting.biz.ao.RoleAO;
import com.linjuke.mayouting.web.common.BaseScreen;
import com.zjuh.splist.web.RunData;
import com.zjuh.splist.web.TemplateContext;
import com.zjuh.sweet.result.Result;

public class Detail extends BaseScreen {

	private RoleAO roleAO;
	
	@Override
	public void execute(RunData rundata, TemplateContext templateContext) {
		int id = rundata.getQueryString().getInt("id");
		Result result = roleAO.viewRole(id);
		this.handleResult(result, rundata, templateContext);
	}

	public void setRoleAO(RoleAO roleAO) {
		this.roleAO = roleAO;
	}

}
